/**
 * Created by Administrator on 2016/12/29.
 */
angular.module('app',['ionic','app.two','app.three','app.one'])
.config(function($stateProvider, $urlRouterProvider){
        $stateProvider
            .state('one',{
                url : '/one',
                views : {
                    'one' : {
                        templateUrl : 'templates/one/one.html'
                    }
                }
            })
            .state('two',{
                url : '/two',
                views : {
                    'two' : {
                        templateUrl : 'templates/two/two.html'
                    }
                }
            })
            .state('three',{
                url : '/three',
                views : {
                    'three' : {
                        templateUrl : 'templates/three/three.html'
                    }
                }

            });
        $urlRouterProvider.otherwise('/two');
    });